<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Get content type</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="httprequest.enablecookies.html">HttpRequest::enableCookies</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="httprequest.getcookies.html">HttpRequest::getCookies</a></div>
 <div class="up"><a href="class.httprequest.html">HttpRequest</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="httprequest.getcontenttype" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">HttpRequest::getContentType</h1>
  <p class="verinfo">(PECL pecl_http &gt;= 0.10.0)</p><p class="refpurpose"><span class="refname">HttpRequest::getContentType</span> &mdash; <span class="dc-title">Get content type</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-httprequest.getcontenttype-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">string</span> <span class="methodname"><strong>HttpRequest::getContentType</strong></span>
    ( <span class="methodparam">void</span>
   )</div>


  <p class="para rdfs-comment">
   Get the previously set content type.
  </p>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-httprequest.getcontenttype-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns the previously set content type as string.
  </p>
 </div>


 


 


 


 


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="httprequest.enablecookies.html">HttpRequest::enableCookies</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="httprequest.getcookies.html">HttpRequest::getCookies</a></div>
 <div class="up"><a href="class.httprequest.html">HttpRequest</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
